#include <iostream>
#include <string>

using namespace std;
//class person
//{
//public:
//    static int _num;
//    person() { ++_num; }
//    void Print()
//    {
//        cout << "name:" << _name << endl;
//        cout << "age:" << _age << endl;
//    }
//protected:
//    string _name = "";
//    int _age = 0;
//};
//
//int person::_num = 0;
//
//class student : public person
//{
//protected:
//    int _id = 0;
//};
//
//class teacher : public person
//{
//    int _jobid = 0;
//};
//
//
//int main()
//{
//    student s;
//    teacher t;
//    person p;
//    cout << person::_num << endl;
//    return 0;
//}

class person
{
public:
	int _age = 0;
};

class student: virtual public person
{
public:
	int _id = 0;
};

class teacher : virtual public person
{
public:
	int _num = 0;
};

class assistant : public student, public teacher
{
public:
	int _t = 0;
};

int main()
{
	assistant s;
	s.student::_age = 1;
	s.teacher::_age = 2;
	s._id = 3;
	s._num = 4;
	s._t = 5;
	return 0;

}